package com.hyh.baowenlioaworking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyh.baowenlioaworking.model.Employee;
import com.hyh.baowenlioaworking.model.dtos.EmployeeDto;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @BelongsPackage: com.hyh.baowenlioaworking.mapper
 * @ClassName EmployeeMapper
 * @Author: hyhWTX
 * @CreateTime: 2023-07-21  13:59
 * @Description: TODO (一句话描述以下该类的功能)
 * @Version: 1.0
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    /**
     * 查询所有
     * @return
     */
    List<EmployeeDto> queryEmployee();

    /**
     * 修改方法
     * @param employeeDto
     * @return
     */

    public int updateEmployee(@RequestBody EmployeeDto employeeDto);

    int deleteEmployeeById(int id);

    int addEmployee(Employee employee);
    int deleteAll();
}

